home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak Vol C-14
/
Vol C-14.iso
/
games
/
memoria.swf
/
scripts
/
DefineButton2_7
/
BUTTONCONDACTION on(release).as
Wrap
Text File
|
2012-04-23
|
1KB
|
57 lines
on(release){
Display = "0";
set("/:trycount",eval("/:trycount") + "1");
set("/:trymatch",eval("/:trycount") / "2");
if(Faceup != "1")
{
if(eval("/:ClickCount") == "0")
{
Display = "1";
set("/:ClickCount","1");
set("/:FirstClick",_target);
}
else if(eval("/:ClickCount") == "1")
{
if(_target ne eval("/:FirstClick"))
{
Display = "1";
if(MyCard != eval(eval("/:FirstClick") add "/:MyCard"))
{
set("/:SecondClick",_target);
set("/:ClickCount","2");
}
else
{
set("/:ClickCount","0");
FaceUp = "1";
set(eval(eval("/:FirstClick") add "/:Faceup"),"1");
set("/:GameCount",eval("/:GameCount") + "1");
if(eval("/:GameCount") == "8")
{
tellTarget("/EOG")
{
gotoAndPlay(2);
}
}
}
}
}
else
{
set("/:ClickCount","0");
tellTarget(eval("/:FirstClick"))
{
gotoAndStop(1);
}
tellTarget(eval("/:SecondClick"))
{
gotoAndStop(1);
}
}
if(Display == "1")
{
gotoAndStop(MyCard + "1");
}
}
}